import React from 'react';
import './index.less';
import {connect} from "dva";
import Curd from "components/Curd";
import createColumns from "./columns";
import searchColumns from "./searchColumns";


@connect(({withdrawal}) => ({withdrawal}))
export default class extends Curd {

  static defaultProps = {
    align: 'center',
    searchType: 'inline',
    searchCols: {span: 8},
    showAddDelete: false,
  }

  getNamespace() {
    return 'withdrawal';
  }

  getTableColumns() {
    return createColumns(this);
  }

  getSearchColumns() {
    return searchColumns;
  }

}
